// interface RankFunction {
//   onSearch(): void;
//   onTabChange(name: any): void;
// }
// interface RankData {
//   value: string;
//   tab: string;
//   headerList: Array<string>;
//   upList: Array<any>;
// }
// <RankData, RankFunction>
// 排行榜页面数据
Page({
  data: {
    tab: "0", // 选项卡的索引
    value: "", // 输入框的值
    headerList: ["排名", "UP主信息", "胡椒指数", "详情"],
    upList: [1, 2, 3, 4, 7, 10], // up主列表
    model: {
      plaies: "新增播放",
      likes: "新增点赞",
      plaiesTotal: "播放总数",
      likesToal: "点赞总数",
    },
  },
  // 搜索回调
  onSearch() {},
  // 选项卡切换
  jumpVideInfo() {
    wx.navigateTo({
      url: "/package/video-analysis/index",
    });
  },
});
